<?php
namespace Home\Model;
use Think\Model\RelationModel;;
class ClassmModel extends RelationModel {

  protected $_link = array(
    'Article' => array(
    'mapping_type'  => self::HAS_MANY,
    'class_name'    => 'classs',
    'foreign_key'   => 'classm_id',
    'mapping_name'  => 'classs',
    'mapping_order' => 'classs_order desc',
    // 定义更多的关联属性
    ),
 );




}
?>